<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>


<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>用户管理</title>
	<link href="<s:url value="/"/>resources/css/user.css" rel="stylesheet" />
	<script src="<s:url value="/"/>resources/js/user.js"></script>
</head>
<body>
<div class="container-fluid userView">
	<div class="row-fluid full-height">
		<div class="span2 full-height right-border">
			<!--Sidebar content-->
			<div class="right">
				<ul id="userOrgTree" class="ztree"></ul>
			</div>
			<div id="userOrgRMenu">
				<ul class="dropdown-menu">
					<li id="addUser" onclick="addUser();"><i class="icon-plus-sign"></i>新增用户</li>
				</ul>
			</div>
		</div>
		
		<div id="userBody" class="span10 full-height">
		
		<div class="select"  id="userBody">
		<form:form id="queryUserForm" cssClass="conditionUser form-inline" modelAttribute="user">
			<form:hidden id="uorgId" path="orgId"/>
			<div class="control-group " >	
				<form:label cssClass="control-label" for="uname" path="sysOrg.name" >所属组织:</form:label>
				<form:input id="uname" path="sysOrg.name" readonly="true"  onclick="showOrgTree();" cssClass="input-medium"/>
				
				<button type="button" class="btn" onclick="showOrgTree(); return false;">请选择</button>
				&nbsp;&nbsp;&nbsp;&nbsp;
				
				<form:label cssClass="control-label" for="userName" path="userName" >用户名称:</form:label>
				<form:input id="userName" path="userName" click="showOrgTree(); return false;" cssClass="input-medium"/>&nbsp;&nbsp;&nbsp;&nbsp;
				
				<form:label cssClass="control-label" for="loginName" path="loginName" >登陆账号:</form:label>
				<form:input id="loginName" path="loginName"  cssClass="input-medium"/>
			</div>
			
			<div class="control-group ">
				<input id="queryBtn" type="button" class="btn btn-primary" onclick="if(queryUser()==false) return false;" value="查询"/>
				<input type="reset" class="btn" value="重置" onclick="resets()"/>
			</div>
		</form:form>
		</div>
		
		<div id="userContainer">
			<div class="control-group ">
				<input type="button" class="btn btn-primary"  value="增加" style="width:100px;" onclick="if(addUserButton()==false) return false;"/>
				<input type="button" class="btn btn-primary"  value="删除" style="width:100px;" onclick="if(delUsers()==false) return false;"/>
				<input type="button" class="btn btn-primary"  value="重置默认密码" onclick="if(resetPassword()==false) return false;"/>
			</div>
		</div>
		
		<div id="download" style="display: none;">
				<span><input type="checkbox" id="param:userId" name="chname" onclick=""/></span>
		</div>
		
		<div id="umenuContent" class="umenuContent"  >
			<ul id="showOrgTree" class="ztree" style="margin-top:0; width:150px;"></ul>
		</div>
		</div>
	</div>
</div>
	<div id="updateUser" style="display: none;">		
		<img alt="修改" style="cursor: pointer;" onclick="updateUser('param:userId')"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/edit.png"/>	
	</div>
</body>
</html>		